package com.github.alfred.ddd.core.exception;

import com.dragonsoft.qz.enums.IErrorCodeEnum;

/**
 * @author Administrator
 */
public class ApplicationInfrastructureException extends ApplicationException {

    private static final String DEFAULT_ERR_CODE = "APPLICATION_INFRA_ERROR";

    public ApplicationInfrastructureException(String message, Throwable ex) {
        super(DEFAULT_ERR_CODE, message, ex);
    }

    public ApplicationInfrastructureException(IErrorCodeEnum errorCodeEnum, Throwable ex) {
        super(errorCodeEnum.getErrorCode(), errorCodeEnum.getErrorMsg(), ex);
    }

}